/**
 * 六边形实体
 * 包好多个六边形格子
 * 测试用
 */

using System.Collections.Generic;
using UnityEngine;
namespace GameGraphics.HomeWorld
{
    public enum EHexEntityStatus
    {
        Preview,
        Complete
    }

    /// <summary>
    /// 实体信息，长在六边形地块上边的实体
    /// </summary>
    public class HexEntity
    {
        /// <summary>
        /// 包含的所有六边形格子索引
        /// 偏移坐标系下的相对的 (X, Z)
        /// </summary>
        public List<Vector2Int> HexCellList;
        /// <summary>
        /// 常规坐标位置  (X, Y)
        /// </summary>
        public Vector2Int Position;
        /// <summary>
        /// 预制体
        /// </summary>
        public string PrefabName;
        /// <summary>
        /// 表格中的类型;
        /// </summary>
        public int Type;
        /// <summary>
        /// 模型
        /// </summary>
        public GameObject Model;
        /// <summary>
        /// 等级
        /// </summary>
        public int Level = 1;
        /// <summary>
        /// 当前状态
        /// </summary>
        public EHexEntityStatus Status = EHexEntityStatus.Complete;
        /// <summary>
        /// BuildingVo有值表示完成
        /// -1表示预览
        /// </summary>
        public long Id = -1;
        /// <summary>
        /// 建造花费金币
        /// </summary>
        public int NeedGold;
        /// <summary>
        /// 是否有背包中创建出来的
        /// </summary>
        public bool InBag = false;
        public long BuildId = 0;
    }
}
